package com.bilibili.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bilibili.domain.entity.UserMoments;
import org.apache.rocketmq.client.exception.MQBrokerException;
import org.apache.rocketmq.client.exception.MQClientException;
import org.apache.rocketmq.remoting.exception.RemotingException;

import java.util.List;

/**
* @author www
* @description 针对表【t_user_moments(用户动态表)】的数据库操作Service
* @createDate 2024-06-09 14:42:07
*/
public interface UserMomentsService extends IService<UserMoments> {

    void addUserMoments(UserMoments userMoments) throws MQBrokerException, RemotingException, InterruptedException, MQClientException;

    List<UserMoments> geyUserSubscribedMoments(Long userId);
}
